﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Ditto.Models.ItemRequests>" %>

<div>
<h3>Requests (<%: Model.Count().ToString() %>)</h3>
<% foreach (var request in Model)
   {
       Html.RenderPartial("RequestSummary", request);
   } %>

        <% if (Model.Count() == 0) { %>
        <div class="summary">
           No item requests currently
        </div>
        <% } %>
</div>